From a2d1d5244b400074b247dc8bdfbacc54dbe1be55 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 12 Jun 2015 13:30:34 +0200 Subject: [PATCH] entry: Ensure we unset the magnifier widget on ::destroy Otherwise there's dangling signal handlers which cause warnings at the time we attempt to disconnect these. --- gtk/gtkentry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 61c3ba4823..4865e96e9e 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -2965,6 +2965,9 @@ gtk_entry_destroy (GtkWidget *widget) priv->recompute_idle = 0; } + if (priv->magnifier) + _gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL); + GTK_WIDGET_CLASS (gtk_entry_parent_class)->destroy (widget); } -- 2.30.2